.log-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #000;
  color: #fff;
}

.log-navbar {
  background-color: #1a1a1a !important;
  border-bottom: 1px solid #333;
  
  :global(.adm-nav-bar-title) {
    color: #fff !important;
  }
  
  :global(.adm-nav-bar-back-arrow) {
    color: #fff !important;
  }
}

.log-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #ccc;
  
  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    
    &.connected {
      background-color: #52c41a;
      box-shadow: 0 0 4px #52c41a;
    }
    
    &.disconnected {
      background-color: #ff4d4f;
      box-shadow: 0 0 4px #ff4d4f;
    }
  }
}

.log-controls {
  padding: 12px 16px;
  background-color: #1a1a1a;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.log-error-banner {
  background-color: #ff4d4f;
  color: #fff;
  padding: 8px 16px;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid #333;
}

.log-container {
  flex: 1;
  overflow: hidden;
  background-color: #000;
  position: relative;
}

.log-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  
  :global(.antd-mobile-icon) {
    font-size: 48px;
    margin-bottom: 16px;
  }
  
  p {
    margin: 0;
    font-size: 14px;
  }
}

.log-item {
  padding: 8px 16px;
  border-bottom: 1px solid #1a1a1a;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 12px;
  line-height: 1.4;
  word-break: break-word;
  height: 48px;
  line-height: 24px;
  box-sizing: border-box;
  background-color: #000;
  
  &:hover {
    background-color: #1a1a1a;
  }
  
  .log-time {
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 80px;
  }
  
  .log-content {
    flex: 1;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
    word-break: break-all;
  }
  
  /* 日志类型样式 */
  &.log-info {
    .log-content {
      color: #fff;
    }
  }
  
  &.log-warning {
    .log-content {
      color: #faad14;
    }
    
    .log-time {
      color: #faad14;
    }
  }
  
  &.log-error {
    .log-content {
      color: #ff4d4f;
    }
    
    .log-time {
      color: #ff4d4f;
    }
  }
}

.log-fixed{
   border-bottom: 1px solid #fadb14;
   height: 150px;
   overflow: auto;
}
/* 响应式设计 */
@media (max-width: 768px) {
  .log-item {
    padding: 6px 12px;
    font-size: 11px;
    height: 36px;
    
    .log-time {
      min-width: 70px;
    }
  }
  
  .log-controls {
    padding: 8px 12px;
    
    .log-count {
      font-size: 11px;
    }
  }
}

/* 动画效果 */
.log-item {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 性能优化：减少重绘 */
.log-item {
  will-change: transform;
  transform: translateZ(0);
}

/* react-window 样式覆盖 */
:global(.ReactVirtualized__List) {
  outline: none !important;
  
  &::-webkit-scrollbar {
    width: 6px;
  }
  
  &::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  
  &::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
  }
  
  &::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
} 